Skip to content

Initial implementation of unsealed array shapes#5501

Draft
ondrejmirtes wants to merge 2 commits into2.2.xfrom
unsealed
Draft

Initial implementation of unsealed array shapes#5501
ondrejmirtes wants to merge 2 commits into2.2.xfrom
unsealed

Conversation

@ondrejmirtes
Copy link
Copy Markdown
Member

@ondrejmirtes ondrejmirtes commented Apr 21, 2026

Array shapes like array{a: int} in PHPDocs are only sealed in Bleeding Edge.

Without Bleeding edge, the goal is to match the current flawed behaviour as close as possible.

Closes phpstan/phpstan#13565
Closes phpstan/phpstan#8438
Closes phpstan/phpstan#11494

Array shapes like `array{a: int}` in PHPDocs are only sealed in Bleeding Edge.

Without Bleeding edge, the goal is to match the current flawed behaviour
as close as possible.
@phpstan-bot
Copy link
Copy Markdown
Collaborator

You've opened the pull request against the latest branch 2.2.x. PHPStan 2.2 is not going to be released for months. If your code is relevant on 2.1.x and you want it to be released sooner, please rebase your pull request and change its target to 2.1.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants